package org.tp8.sampleapp.jaxb.paging.dto;
import java.util.List;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * The Class JaxbPage.
 */
@XmlRootElement(name = "page")
@XmlAccessorType(XmlAccessType.FIELD)
public class JaxbPage {

	/**
	 * The content.
	 */
	@SuppressWarnings("rawtypes")
	private List content;

	/**
	 * The number.
	 */
	private int number;

	/**
	 * The size.
	 */
	private int size;

	/**
	 * The total pages.
	 */
	private int totalPages;

	/**
	 * The number of elements.
	 */
	private int numberOfElements;

	/**
	 * The total elements.
	 */
	private long totalElements;

	/**
	 * The sort.
	 */
	private JaxbSort sort;

	/**
	 * Gets the content.
	 * 
	 * @return the content
	 */
	@SuppressWarnings("rawtypes")
	public List getContent() {
		return content;
	}

	/**
	 * Sets the content.
	 * 
	 * @param content
	 *            the new content
	 */
	@SuppressWarnings("rawtypes")
	public void setContent(List content) {
		this.content = content;
	}

	/**
	 * Gets the number.
	 * 
	 * @return the number
	 */
	public int getNumber() {
		return number;
	}

	/**
	 * Sets the number.
	 * 
	 * @param number
	 *            the new number
	 */
	public void setNumber(int number) {
		this.number = number;
	}

	/**
	 * Gets the size.
	 * 
	 * @return the size
	 */
	public int getSize() {
		return size;
	}

	/**
	 * Sets the size.
	 * 
	 * @param size
	 *            the new size
	 */
	public void setSize(int size) {
		this.size = size;
	}

	/**
	 * Gets the total pages.
	 * 
	 * @return the total pages
	 */
	public int getTotalPages() {
		return totalPages;
	}

	/**
	 * Sets the total pages.
	 * 
	 * @param totalPages
	 *            the new total pages
	 */
	public void setTotalPages(int totalPages) {
		this.totalPages = totalPages;
	}

	/**
	 * Gets the number of elements.
	 * 
	 * @return the number of elements
	 */
	public int getNumberOfElements() {
		return numberOfElements;
	}

	/**
	 * Sets the number of elements.
	 * 
	 * @param numberOfElements
	 *            the new number of elements
	 */
	public void setNumberOfElements(int numberOfElements) {
		this.numberOfElements = numberOfElements;
	}

	/**
	 * Gets the total elements.
	 * 
	 * @return the total elements
	 */
	public long getTotalElements() {
		return totalElements;
	}

	/**
	 * Sets the total elements.
	 * 
	 * @param totalElements
	 *            the new total elements
	 */
	public void setTotalElements(long totalElements) {
		this.totalElements = totalElements;
	}

	/**
	 * Gets the sort.
	 * 
	 * @return the sort
	 */
	public JaxbSort getSort() {
		return sort;
	}

	/**
	 * Sets the sort.
	 * 
	 * @param sort
	 *            the new sort
	 */
	public void setSort(JaxbSort sort) {
		this.sort = sort;
	}

}